<template>
<div>
  <router-view></router-view>
  <tab-bar>
    <tab-bar-item path="/home">
      <img slot="item-img-active" src="~assets/img/home_active.png"/>
      <img slot="item-img" src="~assets/img/home.png"/>
      <div slot="item-text">首页</div>
    </tab-bar-item>
    <tab-bar-item path="/classify">
      <img slot="item-img-active" src="~assets/img/classify_active.png"/>
      <img slot="item-img" src="~assets/img/classify.png"/>
      <div slot="item-text">分类</div>
    </tab-bar-item>
    <tab-bar-item path="/shopcart">
      <img slot="item-img-active" src="~assets/img/shopcart_active.png"/>
      <img slot="item-img" src="~assets/img/shopcart.png"/>
      <div slot="item-text">购物车</div>
    </tab-bar-item>
    <tab-bar-item path="/profile">
      <img slot="item-img-active" src="~assets/img/profile_active.png"/>
      <img slot="item-img" src="~assets/img/profile.png"/>
      <div slot="item-text">我的</div>
    </tab-bar-item>
  </tab-bar>
</div>
</template>

<script>
import TabBar from "../tabbar/TabBar";
import TabBarItem from "../tabbar/TabBarItem";
export default {
  name: "MainTabBar",
  components: {
    TabBar,
    TabBarItem
  }
}
</script>

<style scoped>

</style>
